/*
 * @Description: 
 * @Author: 胡涛
 * @Date: 2023-09-26 09:04:12
 * @LastEditors: 胡涛
 * @LastEditTime: 2023-10-21 12:55:27
 */
export const toUpperCamelCaseName = (name: string) => {
  // console.log("toUpperCamelCaseName，name=>", name);
  let comName = toLowerCamelCaseName(name);
  return comName.substring(0, 1).toUpperCase() + comName.substring(1);
};

export const toLowerCamelCaseName = (name: string) => {
  return name.replace(/-(\w)/g, function (match, p1) {
    return p1.toUpperCase();
  });
};
